home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / Folders.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  1.9 KB  |  67 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Friday, September 13, 1991 at 12:45 PM
  5.  Folders.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1989-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __FOLDERS__
  16. #define __FOLDERS__
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22. #ifndef __FILES__
  23. #include <Files.h>
  24. #endif
  25.  
  26.  
  27. enum {
  28.  
  29.  kOnSystemDisk = 0x8000
  30.  
  31.  
  32. #define kCreateFolder true
  33. #define kDontCreateFolder false
  34.  
  35. #define kSystemFolderType 'macs'                /*the system folder*/
  36. #define kDesktopFolderType 'desk'                /*the desktop folder; objects in this folder show on the desk top.*/
  37. #define kTrashFolderType 'trsh'                    /*the trash folder; objects in this folder show up in the trash*/
  38. #define kWhereToEmptyTrashFolderType 'empt'        /*the "empty trash" folder; Finder starts empty from here down*/
  39.  
  40. #define kPrintMonitorDocsFolderType 'prnt'        /* Print Monitor documents */
  41.  
  42. #define kStartupFolderType 'strt'                /*Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here*/
  43. #define kAppleMenuFolderType 'amnu'                /*Finder objects to put into the Apple menu go here*/
  44. #define kControlPanelFolderType 'ctrl'            /*Control Panels go here (may contain INITs)*/
  45. #define kExtensionFolderType 'extn'                /*Finder extensions go here*/
  46.  
  47. #define kPreferencesFolderType 'pref'            /*preferences for applications go here*/
  48. #define kTemporaryFolderType 'temp'                /*temporary files go here (deleted periodically, but don't rely on it.)*/
  49. };
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54. #if SystemSevenOrLater
  55. pascal OSErr FindFolder(short vRefNum,OSType folderType,Boolean createFolder,
  56.  short *foundVRefNum,long *foundDirID)
  57.  = {0x7000,0xA823}; 
  58. #else
  59. pascal OSErr FindFolder(short vRefNum,OSType folderType,Boolean createFolder,
  60.  short *foundVRefNum,long *foundDirID);
  61. #endif
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66. #endif
  67.